//
//  AFHTTPSessionManager+Extension.m
//  ZXLSign
//
//  Created by zxl02 on 2020/12/7.
//

#import "AFHTTPSessionManager+Extension.h"

@implementation AFHTTPSessionManager (Extension)
-(NSString*)getSignToStringWithMethod:(NSString*)method urlString:(NSString*)urlString parameters:(id)parameters{
        NSMutableURLRequest *request =[method isEqualToString:@"GET"]? [self.requestSerializer requestWithMethod:method URLString:urlString parameters:parameters error:nil]:[[AFJSONRequestSerializer  serializer] requestWithMethod:method URLString:urlString parameters:parameters error:nil];
    
    return  @"";

}
-(void)addSign{
//    self dataTaskWithHTTPMethod:<#(nonnull NSString *)#> URLString:<#(nonnull NSString *)#> parameters:<#(nullable id)#> headers:<#(nullable NSDictionary<NSString *,NSString *> *)#> uploadProgress:<#^(NSProgress * _Nonnull uploadProgress)uploadProgress#> downloadProgress:<#^(NSProgress * _Nonnull downloadProgress)downloadProgress#> success:<#^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject)success#> failure:<#^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error)failure#>
//    NSMutableURLRequest * request = [self.requestSerializer requestWithMethod:@"Get" URLString:[[NSURL URLWithString:@""] absoluteString] parameters:@{} error:nil];
    
//     self
//    NSMutableURLRequest *request =[data.requestType isEqualToString:@"GET"]? [[AFHTTPRequestSerializer  serializer] requestWithMethod:data.requestType URLString:data.URL parameters:data.body error:nil]:[[AFJSONRequestSerializer  serializer] requestWithMethod:data.requestType URLString:data.URL parameters:data.body error:nil];

    
}
@end
